Embedded variables allow you to show values that change dynamically at runtime. Put placeholders in strings where the embedded variable will be shown. At run time, the placeholder is updated with the real-time values of the variables.
Embedded variables are of two kinds:
Use one or more embedded variables in:
For example, you could embed a tag value and the time variable in a local message. At run time when the local message is shown, it is updated to reflect the tag’s current value as the value changes. The time is also updated as the time changes.
You can also use literal strings and constants in embedded variables, or a combination of both variable and literal strings and numbers.
Embedded variables can consist of:
To use a character string in an embedded variable instead of a tag value, choose the Literal string option in the String Variable dialog box. To use a literal number instead of a tag value, choose the Literal number option in the Numeric variable dialog box.
Tip: |
You can include numbers in the Literal string option. Use the Literal number option if the number you want to display requires decimal places or other special formatting. |
The Graphics editor accepts tag placeholders instead of tag names. Placeholders allow you to use the same display with different sets of tags.
You can use tag placeholders in:
Use parameter files or parameter lists to specify which tags to substitute for which placeholders.
Tip: |
Embedded variables are case sensitive, and must be in the proper format and syntax to work. If you make a mistake, your variable will be treated as a piece of text. Therefore, do not attempt to edit embedded variables manually. Use the Insert Variable and Edit variable dialog boxes to avoid problems. |
Keywords: embedded variable